package com.groupbuying.storeinternal.service;

import com.groupbuying.storeinternal.domain.StoreMainInfoDO;
import com.groupbuying.storeinternal.utils.R;
import com.groupbuying.storeinternal.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 商户主信息
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-24 10:31:25
 */
public interface StoreMainInfoService {
	
	StoreMainInfoDO get(String uuid);
	
	List<StoreMainInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreMainInfoDO storeMainInfo);
	
	int update(StoreMainInfoDO storeMainInfo);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);
	/**
	 * 根据chaiStoreUuid修改
	 */
	int updateByChainStoresUuid(Map<String,Object> map);

	/**
	 * 查找优店用户
	 * @param params
	 * @return
	 */
	R getCrossUShopList(Map<String, Object> params);

	/**
	 * Description 获取门店名称 <br>
	 *
	 * @author Ywxd <br>
	 * @param
	 * @return  List<String>
	 * @createDate 2019/6/24 11:16<br>
	 **/
	List<Map<String, String>> getUuidAndStoreName();

	/**
	 * 获取商户详情
	 * @return
	 */
	R getShopDetail(Map<String, Object> params);

	/**
	 * 通过收银台id 获取账期
	 * @param counterId
	 * @return
	 */
    ApiResult getPaymentDayByCounterId(String counterId);
}
